package com.example.selflearning.domain;

import lombok.Data;

import java.io.Serializable;

@Data
public class User implements Serializable {
    private String name;
    private  int age;
    private int userId;
    public User( int userId){
        this.userId=userId;
        this.name= "default name and userId is "+userId;
    }

}
